<template>
  <div id="centreRight2">
    <div class="bg-color-black">
      <div class="d-flex pt-2 pl-2">
        <span style="color:#5cd9e8">
          <icon name="align-left"></icon>
        </span>
        <span class="fs-xl text mx-2">人员年龄结构</span>
      </div>
      <div class="d-flex jc-center body-box">
        <dv-capsule-chart :config="config" style="width: 100%;height:100%" />
        <!-- <centreRight2Chart1></centreRight2Chart1> -->
        <!-- 总人数:<dv-digital-flop :config="sumNumber" style="width:100px;height:50px;" />
        <dv-digital-flop :config="empNumber" style="width:100px;height:50px;" />
        <dv-digital-flop :config="leaveNumber" style="width:100px;height:50px;" /> -->
      </div>
    </div>
  </div>
</template>

<script>
//import centreRight2Chart1 from "@/components/echart/centreRight2/centreRight2Chart1";

export default {
  props: ["listData"],
  watch: {
    listData(newValue) {
      const { config } = this;
      this.config.data = newValue;
      this.config = { ...this.config };
     
    }
  },
  data() {
    return {
      
      config: {
        unit: "人"
      }
    };
  },
  // components: { centreRight2Chart1 },
  mounted() {
   
    
  },
  methods: {
    
  }
};
</script>

<style >
#centreRight2 {
  padding: 5px;
  height: 200px;
  min-width: 300px;
  border-radius: 5px;
}
.bg-color-black {
  padding: 5px;
  height: 200px;
  border-radius: 10px;
}
.text {
  color: #c3cbde;
}
.body-box {
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}
</style>